<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        let requestSeq = 0;
        async function fetchPageData(page) {
            const currentSeq = ++requestSeq;
            
            const response = await fetch(`/api/data?page=${page}`);
            const data = await response.json();
            
            // 只处理最新请求的响应
            if (currentSeq === requestSeq) {
                renderData(data);
            }
        }
    </script>
</body>
</html>